package com.todo.biz.iface.backend.request;

import com.todo.common.common.entity.CurrentStaff;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author zhangwenxiang
 * @date 2024/3/5 18:54
 * @description
 */
@Data
public class UpdateCollectRelationReq {

    private CurrentStaff _staff;

    /**
     * 集合id
     */
    @Schema(title = "集合id", description = "集合id")
    private Long setId;

    @Schema(title = "集合信息列表", description = "集合信息列表")
    private List<CollectRelation> collectRelationList;

    public boolean baseCheck() {
        if (setId == null) {
            return false;
        }
        return true;
    }

    @Data
    public static class CollectRelation {

        /**
         * 关联id
         */
        @Schema(title = "关联id", description = "关联id")
        private Long relationId;
        /**
         * 关联类型 门店、美食、景点等
         * CollectSetTypeEnum
         */
        @Schema(title = "关联类型", description = "门店、美食、景点等")
        private Integer relationType;
        /**
         * 排序
         */
        @Schema(title = "排序", description = "排序")
        private Integer sort = 0;
    }
}
